package com.bs.mapper;

import com.bs.bean.Answer;

import java.util.ArrayList;
import java.util.List;

public interface AnswerMapper {

    int getReplyNumById(Integer id);

    boolean addAnswer(Answer answer);

    List<Answer> getAllAnswer();

    boolean deleteAnswerById(Integer id);

    Answer getAnswerById(Integer id);

    void updateStateByAnswer(Answer answer);

    List<Answer> getAnswerByName(String answeruser);

    ArrayList<Answer> getAllAnswerByName(String answeruser);
}
